﻿#ifndef TOOLBUTTON_H
#define TOOLBUTTON_H

#include <QToolButton>
#include <QEvent>
#include <QEnterEvent>

class ToolButton : public QToolButton
{
    Q_OBJECT
public:
    explicit ToolButton(QWidget *parent = nullptr);

protected:
#if QT_VERSION <= QT_VERSION_CHECK(5, 15, 2)
    virtual void enterEvent(QEvent *e) override;
#else
    virtual void enterEvent(QEnterEvent *e) override;
#endif
    virtual void leaveEvent(QEvent *e) override;

signals:

};

#endif // TOOLBUTTON_H
